set(incs . 
	include
	include/common
	include/device
    ../../../../components/bk_peripheral/bkwl/inc
    ../../../../bk_idk/components/bk_bluetooth/bt/ble_boarding
)
 

set(srcs app_main.c)

if (CONFIG_SYS_CPU0)
list(APPEND srcs
	src/bkwl_base/common/bkwl_app.c
)
endif()

if (CONFIG_INTEGRATION_DOORBELL_CS2)
list(APPEND srcs
	src/doorbell_cs2_service.c
)
endif()

set(priv_req bk_init bt media_service lwip_intf_v2_1)


if ("${ARMINO_SOC}" STREQUAL "bk7256") 
list(APPEND priv_req media cs2p2p aud_intf)
endif()

if ("${ARMINO_SOC}" STREQUAL "bk7258")
list(APPEND priv_req multimedia cs2p2p)
endif()

if (CONFIG_OVERRIDE_FLASH_PARTITION)
	list(APPEND srcs
		vendor_flash.c
	)
endif()

armino_component_register(
	SRCS "vendor_flash.c" "app_main.c" "${srcs}"
	INCLUDE_DIRS "${incs}"
	PRIV_REQUIRES "${priv_req}" wifi_transfer
)
